<?php slot("ms","course.ls")?>
<h1 class="title"><?php echo __("Lista de Cursos")?></h1>

<table class="tbl-1">
  <thead>
    <tr>
      <th>Id</th>
      <th>Code</th>
      <th>Name</th>
      <th>Description</th>
      <th>Created at</th>
      <th>Updated at</th>
    </tr>
  </thead>
  <tbody>
    <?php foreach ($curses as $curse): ?>
    <tr>
      <td><a href="<?php echo url_for('curses/show?id='.$curse->getId()) ?>"><?php echo $curse->getId() ?></a></td>
      <td><?php echo $curse->getCode() ?></td>
      <td><?php echo $curse->getName() ?></td>
      <td><?php echo $curse->getDescription() ?></td>
      <td><?php echo $curse->getCreatedAt() ?></td>
      <td><?php echo $curse->getUpdatedAt() ?></td>
    </tr>
    <?php endforeach; ?>
  </tbody>
</table>

  <a href="<?php echo url_for('curses/new') ?>">New</a>
